package com.farsight.leo.fssmartlock.net.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class UserData implements Parcelable {
    /**
     * email_address : leoliao2008@164.com
     * telephone_number : 13726799852
     * user_id : 4
     * user_name : joe
     * user_type : 0
     */

    private String email_address;
    private String telephone_number;
    private int user_id;
    private String user_name;
    private int user_type;
    private String user_password;

    public UserData() {
    }

    protected UserData(Parcel in) {
        email_address = in.readString();
        telephone_number = in.readString();
        user_id = in.readInt();
        user_name = in.readString();
        user_type = in.readInt();
        user_password = in.readString();
    }

    public static final Creator<UserData> CREATOR = new Creator<UserData>() {
        @Override
        public UserData createFromParcel(Parcel in) {
            return new UserData(in);
        }

        @Override
        public UserData[] newArray(int size) {
            return new UserData[size];
        }
    };

    public String getEmail_address() {
        return email_address;
    }

    public void setEmail_address(String email_address) {
        this.email_address = email_address;
    }

    public String getTelephone_number() {
        return telephone_number;
    }

    public void setTelephone_number(String telephone_number) {
        this.telephone_number = telephone_number;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public int getUser_type() {
        return user_type;
    }

    public void setUser_type(int user_type) {
        this.user_type = user_type;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    @Override
    public String toString() {
        return "UserData{" +
                "email_address='" + email_address + '\'' +
                ", telephone_number='" + telephone_number + '\'' +
                ", user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", user_type=" + user_type +
                ", user_password='" + user_password + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(email_address);
        dest.writeString(telephone_number);
        dest.writeInt(user_id);
        dest.writeString(user_name);
        dest.writeInt(user_type);
        dest.writeString(user_password);
    }
}
